<template>
  <div>
        	<div class="m_des">
            	<table border="0" style="width:870px; line-height:22px;" cellspacing="0" cellpadding="0">
                  <tr valign="top">
                    <td width="115"><img src="http://192.168.1.146:8088/user.jpg" width="90" height="90" /></td>
                    <td>
                    	<div class="m_user">{{ user.userName }}</div>
                        
                        <div class="m_notice">
                        	用户中心公告！
                        </div>
                    </td>
                  </tr>
                </table>	
            </div>
            

            <div class="mem_t">账号信息</div>
            <table border="0" class="mon_tab" style="width:870px; margin-bottom:20px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="40%">用户ID：<span style="color:#555555;">{{ user.loginName }}</span></td>
               
              </tr>
              <tr>
                <td>电&nbsp; &nbsp; 话：<span style="color:#555555;">{{ user.mobile }}</span></td>
                <td>邮&nbsp; &nbsp; 箱：<span style="color:#555555;">{{ user.email }}</span></td>
              </tr>
              <tr>
                <td>身份证号：<span style="color:#555555;">{{ user.identityCode }}</span></td>
                <td>注册时间：<span style="color:#555555;">{{ user.createDate }}</span></td>
              </tr>
            </table>
          </div>
</template>

<script>
export default {
    name:'managerMyself',
    data(){
        return{
          user:null,
          token:null
        }
    },
    methods:{
      getTokenAndUser(){
          this.token=sessionStorage.getItem("token") || null;
          if (this.token) {
          const userData = sessionStorage.getItem("user");
          this.user= userData ? JSON.parse(userData) : null;
        }
        }
    },created(){
      this.getTokenAndUser();
    }

}
</script>

<style>

</style>